import { BaseResultType } from '#/request'
import useDealResult from '@/hooks/dealResult'
import uniRequest from '@/request'

const { dealResult, checkResult } = useDealResult()

export const getDevInfoM = async (id: string): Promise<BaseResultType<any> | null> => {
  const [result, err] = await uniRequest.get('/sh/api/getDevInfo?userId=' + id)
  return Promise.resolve(dealResult(err, result))
}